package org.seckill.dto;



public class Exposer {
	//商品id
	private long seckillId;

	//秒杀是否开启
	private boolean exposed;

	//md5加密
	private String mda5;

	//系统当前时间（毫秒）
	private long now;

	//秒杀开启时间
	private long start;

	//秒杀结束时间
	private long end;

	public Exposer( boolean exposed, long seckillId, String mda5) {
		super();
		this.seckillId = seckillId;
		this.exposed = exposed;
		this.mda5 = mda5;
	}

	public Exposer(boolean exposed, long seckillId, long now, long start, long end) {
		super();
		this.exposed = exposed;
		this.seckillId = seckillId;
		this.now = now;
		this.start = start;
		this.end = end;
	}

	public Exposer(boolean exposed, long seckillId) {
		super();
		this.seckillId = seckillId;
		this.exposed = exposed;
	}



	public long getSeckillId() {
		return seckillId;
	}

	public void setSeckillId(long seckillId) {
		this.seckillId = seckillId;
	}

	public boolean isExposed() {
		return exposed;
	}

	public void setExposed(boolean exposed) {
		this.exposed = exposed;
	}

	public String getMda5() {
		return mda5;
	}

	public void setMda5(String mda5) {
		this.mda5 = mda5;
	}

	public long getNow() {
		return now;
	}

	public void setNow(long now) {
		this.now = now;
	}

	public long getStart() {
		return start;
	}

	public void setStart(long start) {
		this.start = start;
	}

	public long getEnd() {
		return end;
	}

	public void setEnd(long end) {
		this.end = end;
	}

	@Override
	public String toString() {
		return "Exposer [end=" + end + ", exposed=" + exposed + ", mda5="
				+ mda5 + ", now=" + now + ", seckillId=" + seckillId
				+ ", start=" + start + "]";
	}
}
